package com.rockcent.mall.lib.repository;

import com.rockcent.mall.lib.domain.UserInfo;
import com.rockcent.mall.lib.domain.enumclass.UserInfoStatus;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

/**
 * Created by oyhk on 14-6-22.
 */
@Repository
public interface UserInfoRepository extends JpaRepository<UserInfo, Long>, JpaSpecificationExecutor {

    UserInfo findByUsername(String username);
    UserInfo findByEmail(String email);
    UserInfo findByMobile(String mobile);
    UserInfo findById(Long id);
}
